import request from '@/utils/request'

// 获取首页信息
export function syInfo(){
  return request({
    url: '/archive/tongji/syInfo',
    method: 'post'
  })
}

// 获取我的借阅
export function sywdjy() {
  return request({
    url: '/archive/tongji/sywdjy',
    method: 'post'
  })
}

// 获取我的审批进度
export function getProcessCount() {
  return request({
    url: '/activiti/activitiApiController/getProcessCount',
    method: 'post'
  })
}

// 各类档案归档情况对比(年)
export function sygdqk() {
  return request({
    url: '/archive/tongji/sygdqk',
    method: 'post'
  })
}

// 通知公告
export function noticeList(query) {
  return request({
    url: '/system/notice/yslist',
    method: 'get',
    params: query
  })
}

// 待办借阅
export function borrowList(query) {
  return request({
    url: '/activiti/workflowArchiveBorrow/taskList',
    method: 'get',
    params: query
  })
}

// 待办归档
export function guidangList(query) {
  return request({
    url: '/activiti/workflowArchiveSave/taskList',
    method: 'get',
    params: query
  })
}

// 每日借阅量
export function symrjyl() {
  return request({
    url: '/archive/tongji/symrjyl',
    method: 'post'
  })
}

// 库房统计
export function symenlei() {
  return request({
    url: '/archive/tongji/symenlei',
    method: 'post'
  })
}

// 每日访问量
export function syfwl() {
  return request({
    url: '/archive/tongji/syfwl',
    method: 'post'
  })
}

// 验证用户是否存在
export function checkUser() {
  return request({
    url: '/archive/sso/checkUser',
    method: 'post'
  })
}

// 单点地址
export function getPath() {
  return request({
    url: '/archive/sso/getPath',
    method: 'post'
  })
}

export function checkUserCqbc() {
  return request({
    url: '/archive/sso/checkUserCqbc',
    method: 'post'
  })
}

// 单点地址
export function getPathCqbc() {
  return request({
    url: '/archive/sso/getPathCqbc',
    method: 'post'
  })
}

// 单点退出
export function ssologin(data) {
  return request({
    url: '/auth/ssologin',
    method: 'post',
    data: data
  })
}

// 查询门类
export function getArchivesCategory(data) {
  return request({
    url: '/archive/list/query/category/list',
    method: 'post',
    params: data
  })
}


// 根据字典类型查询字典数据信息
export function getDicts_archive(dictType) {
  return request({
    url: 'archive/tenantDict/data/type/' + dictType,
    method: 'get'
  })
}
export function yTaskList(query) {
  return request({
    url: '/activiti/workflowArchiveSave/YtaskList',
    method: 'get',
    params: query
  })
}
//磁盘信息
export function monitorserver() {
  return request({
    url: '/system/monitor/server',
    method: 'get',
  })
}


